package cn.maxhou.sl1.service.impl;

import cn.maxhou.sl1.dao.PetDao;
import cn.maxhou.sl1.dao.impl.PetDaoMySQLImpl;
import cn.maxhou.sl1.entity.Pet;
import cn.maxhou.sl1.service.PetService;

public class PetServiceImpl implements PetService {
    //创建PetDao实现类对象
    PetDao petDao=new PetDaoMySQLImpl();
    @Override
    public boolean save(Pet pet) {
        return petDao.insert(pet)>0;
    }
}
